var path = require('path');
var config = {
    web_root: path.join(__dirname, 'public/'),
	name: 'AppPress',
	description: '',
	version: '0.1.0',
    api_version: '/api/v1/',

	site_headers: [
		'<meta name="author" content="aaronchen2k@gmail.com" />',
		'<meta name="description" content="">'
	],
	host: 'localhost', // host 结尾不要添加'/'
	site_logo: '', // default is `name`
	site_static_host: '', // 静态文件存储域名  dbUserName:dbPassword@127.0.0.1:27017/dbName
	db: 'mongodb://localhost/apppress',
	session_secret: '1234567890QWERTY',
	auth_cookie_name: 'apppress',
	port: 9000,

	mail_port: 25,
	mail_user: '',
	mail_pass: '',
	mail_host: '',
	mail_sender: '',
	mail_use_authentication: true,

	admin_email: 'adm@56.io',
    admin_password: 'pass',

    feature:  {
        infrastructure: ['common', 'user', 'app', 'subscription', 'component'],
        extensions: {
            components: ['contactUs', 'event', 'gallery', 'store', 'video'],
            modules: [],
            plugins: []
        }
    },

    schemaOptions: {
        toObject: {
            virtuals: true
        }
        ,toJSON: {
            virtuals: true
        }
    }
};
exports = module.exports = config;

var host = exports.host;
if (host[host.length - 1] === '/') {
	exports.host = host.substring(0, host.length - 1);
}
